﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared.Master" AutoEventWireup="true" CodeBehind="Companies.aspx.cs" Inherits="ESHOP.ADMIN.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
<form id="Companes" runat="server">
    <div style="padding: 10px;">
        <h3>Detail Companie</h3>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="productDetail">
            <asp:UpdatePanel ID="Updinfor" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Mã Công Ty:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:TextBox ID="txtCodecompany" runat="server" class="inp-form"></asp:TextBox>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Danh mục sản phẩm :
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:DropDownList ID="ddlcategory" runat="server" class="inp-form-select">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Tên Công Ty:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:TextBox ID="txtCompaniesName" runat="server" class="inp-form"></asp:TextBox>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Quốc gia:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:DropDownList ID="ddlQuocgia" runat="server" class="inp-form-select">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Mô Tả:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:TextBox ID="txtPriceProduct" runat="server" class="inp-form"></asp:TextBox>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    logo:
                                </th>
                            </td>
                            <td style="width: 391px">
                                <asp:FileUpload ID="logoUpload" runat="server" Width="250" MaxLength="250" />
                                
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Email:
                                </th>
                            </td>
                            <td style="width: 400px"  >
                                <asp:TextBox ID="txtmota" runat="server" TextMode="MultiLine" CssClass="inp-form"/>
                            </td>
                            <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                </th>
                            </td>
                            <td style="width: 391px">
                                
                            </td>
                        </tr>
                        <tr>
                        <td style="text-align: right; padding-right: 5px;">
                                <th valign="top">
                                    Hiển thị:
                                </th>
                            </td>
                            <td style="width: 30px">
                                <asp:CheckBox ID="cbshow" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td style="width: 450px; padding-top:15px">
                                <asp:Button ID="btnsave" runat="server" Text="Save" Height="36px" 
                                    Width="72px" />
                                <asp:Button ID="btnhuy" runat="server" Height="36px" Text="Huy" 
                                    Width="72px" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <h3>
            List Companies</h3>
        <asp:UpdatePanel ID="updategrid" runat="server" UpdateMode="Conditional">
           <ContentTemplate>
               
                <div class="listProduct">
                    <asp:GridView ID="GvCompanies" runat="server" AutoGenerateColumns="False" 
                        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
                        CellPadding="3" CellSpacing="2" EnableModelValidation="True" 
                        onselectedindexchanged="GridView1_SelectedIndexChanged" Width="966px">                        
                        <Columns>
                            <asp:BoundField HeaderText="Số thứ tự" />
                            <asp:BoundField HeaderText="Mã Công Ty" />
                            <asp:BoundField HeaderText="Tên Công Ty" />
                            <asp:BoundField HeaderText="Website" />
                            <asp:BoundField HeaderText="Danh mục sản phẩm" />
                            <asp:BoundField HeaderText="Quốc gia" />
                            <asp:BoundField HeaderText="Logo" />
                        </Columns>
                        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
                        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                        
                    </asp:GridView>
                   
                        
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>

</asp:Content>
